/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.processing.split.reducers;

import aiaudio.database.tables.TemporaryTable;
import java.io.IOException;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import org.apache.hadoop.hbase.mapreduce.TableReducer;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.io.BooleanWritable;

/**
 *
 * @author nastya
 */
public class DataSetArtistListReducer extends TableReducer<ImmutableBytesWritable, BooleanWritable, ImmutableBytesWritable> {

    @Override
    protected void reduce(ImmutableBytesWritable key, Iterable<BooleanWritable> values, Context context) throws IOException, InterruptedException {
        Put put = new Put(key.get());
        TemporaryTable.addDummyValue(put);
        context.write(new ImmutableBytesWritable(key), put);
    }
}
